package com.hibiscusking.basic.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EmailVerificationDto {
    // 邮箱
    @NotBlank(message = "邮箱不能为空")
//    @Email(message = "邮箱格式正确85")
    private String email;
    // 邮箱验证码
    @NotBlank(message = "邮箱验证码不能为空")
    private String emailVerification;
    // 登录密码
    @NotBlank(message = "密码不能为空")
    private String password;
    // 确认密码
    @NotBlank(message = "确认密码不能为空")
    private String confirmPassword;
}
